package com.atguigu.eduorder.client;

import com.atguigu.commonutils.orderVo.CourseWebVoOrder;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")
public interface EduCourseClient {

    @ApiOperation("根据课程id查询课程信息")
    @GetMapping("/eduservice/coursefront/getCourseOrder/{id}")
    public CourseWebVoOrder getCourseOrder(@PathVariable("id") String id);
}
